def fun():
    year = [82, 89, 88, 86, 85, 00, 99]
    print("原列表:", year)
    for index,value in enumerate(year):
        if str(value) != '0':
            year[index] = int('19' + str(value))
        else:
            year[index] = int('200' + str(value))
    print('修改之后的数组为:', year)
    year.sort()
    print('排序之后的数组为:', year)

if __name__ == '__main__':
    fun()
print()

print('2.请选择咖啡')
coffee_name = ('蓝山', '卡布奇诺', '拿铁', '皇家咖啡', '女五咖啡', '华仔咖啡')
print("您好! 欢迎光临华仔咖啡屋")
print("本店经营的咖啡商品种类有:")
for index,item in enumerate(coffee_name):
    print(index + 1,'.', item, end=" ")
index = int(input("\n请输入您要喜欢的咖啡编号:"))
if 0 <= index <= len(coffee_name):
    print(f'您的咖啡[{coffee_name[index-1]}]好了,请您慢用!!!')
print()

print('3.打印各球队成绩')
scores = (('广州恒大',72),('北京国安', 70),('上海上港', 82),('江苏苏宁', 43), ('山东鲁能', 54))
for index,item in enumerate(scores):
    print(index + 1,'.', end=" ")
    for score in item:
        print(score, end=" ")
    print()
